/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ds.vetxsoft.bean;

import edu.ds.vetxsoft.entity.Ciudad;
import edu.ds.vetxsoft.entity.Mascota;
import edu.ds.vetxsoft.entity.Raza;
import edu.ds.vetxsoft.system.ISystemControl;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author jefferson
 */
@ManagedBean
@SessionScoped
public class MascotaBean implements Serializable{

    @EJB
    private ISystemControl iSystemControl;
    
    private Mascota mascota;

    public ISystemControl getiSystemContro() {
        return iSystemControl;
    }


    public Mascota getMascota() {
        return mascota;
    }

    public void setMascota(Mascota mascota) {
        this.mascota = mascota;
    }
    
    public MascotaBean() {
    }
    
    public List<Raza> getCiudades (){
        return this.iSystemControl.getRazas();
        
    }
}
